﻿using ChuanYe.CountyFireManagement.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace ChuanYe.CountyFireManagement.Api.Models
{
    public class FireFrontCommandRequest
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int FrontCommandId { get; set; }

        /// <summary>
        /// 火灾编号
        /// </summary>
        public int FireId { get; set; }

        /// <summary>
        /// 总指挥
        /// </summary>
        public string CommanderName { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string CommanderTel { get; set; }

        /// <summary>
        /// 经度  1|2|3
        /// </summary>
        [Required]
        public string Longitude { get; set; }
        /// <summary>
        /// 纬度 1|2|3
        /// </summary>
        [Required]
        public string Latitude { get; set; }

        /// <summary>
        /// 指挥部人员编号  1,2,3
        /// </summary>
        public string HeadquarterMemberIds { get; set; }

        /// <summary>
        /// 选填 事发时间 
        /// </summary>
        public DateTime? TransDatetime { get; set; }

        /// <summary>
        /// 添加人
        /// </summary>
        public int UserId { get; set; }

    }

    public class FireHeadquarterSearchRequest
    {
        /// <summary>
        /// 选填 事发地点(区县) 
        /// </summary>
        public string AddressCounty { get; set; }

        /// <summary>
        /// 选填 事发地点(乡镇)
        /// </summary>
        public string AddressTown { get; set; }

        /// <summary>
        /// 选填 事发地点(村组)
        /// </summary>
        public string AddressVillage { get; set; }
    }


    public class FireHeadquarterSearchRequest2: RequestPageBase
    {
        /// <summary>
        /// 选填 事发地点(区县) 
        /// </summary>
        public string AddressCounty { get; set; }

        /// <summary>
        /// 选填 事发地点(乡镇)
        /// </summary>
        public string AddressTown { get; set; }

        /// <summary>
        /// 选填 事发地点(村组)
        /// </summary>
        public string AddressVillage { get; set; }
    }



    public class FireHeadquarterMemberSearchRequest
    {
        /// <summary>
        ///  选填 指挥部编号 
        /// </summary>
        public int HeadquarterId { get; set; }

    }

    public class FireHeadquarterMemberSearchRequest2:RequestPageBase
    {
        /// <summary>
        /// Name,TeamDepartmentName,DepartmentName
        /// </summary>
        public override string  Keyword { get; set; }

    }



    public class FireheadquarterRequest 
    {

        /// <summary>
        /// 主键
        /// </summary>
        public int HeadquarterId { get; set; }


        /// <summary>
        /// 指挥部名称
        /// </summary>
        public string Name { get; set; }


        /// <summary>
        /// 父级指挥部编号  默认 0 最上级
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string Tel { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 时间
        /// </summary>
        public DateTime? TransDatetime { get; set; }
        
        /// <summary>
        /// 选填 区县
        /// </summary>
        public string AddressCounty { get; set; }

        /// <summary>
        /// 选填 乡镇
        /// </summary>
        public string AddressTown { get; set; }


        /// <summary>
        /// 选填 村
        /// </summary>
        public string AddressVillage { get; set; }
    }


    public class RemoveFireheadquarterRequest 
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int HeadquarterId { get; set; }
    }

    public class FireheadquarterMemberRequest
    {

        /// <summary>
        /// 主键
        /// </summary>
        public int HeadquarterMemberId { get; set; }

        /// <summary>
        /// 人员名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 联动响应部门编号
        /// </summary>
        public int TeamDepartmentId { get; set; }

        /// <summary>
        /// 指挥部编号
        /// </summary>
        public int HeadquarterId { get; set; }

        /// <summary>
        /// 职务
        /// </summary>
        public int PositionId { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 座机
        /// </summary>
        public string Tel { get; set; }

        /// <summary>
        /// 选填 事发时间
        /// </summary>
        public DateTime? TransDatetime { get; set; }
    }


    public class RemoveFireheadquarterMemberRequest 
    {

        /// <summary>
        /// 主键
        /// </summary>
        public int HeadquarterMemberId { get; set; }
    }

}
